compute_transform_length Function

public pure function compute_transform_length(n) result(rst)

Computes the length of the positive half of a discrete Fourier transform for a specific signal length.

The length of the discrete Fourier transform is determined as follows.

If n is even,

else; .

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: n

The signal length (length of the signal put forth to the Fourier transform).

Return Value integer(kind=int32)

The length of the positive half of the discrete Fourier transform.